package team.forum.common.result;

import lombok.Getter;

@Getter
public enum ResultStatus {

    //个人中心报错信息
    SUCCESS(200, "成功"),
    SYS_ERROR(400, "系统错误"),
    USER_NO_EXIST(401, "用户名或密码错误"),
    USER_BEEN_DELETE(402, "用户已被删除"),
    USER_EXIST_ERROR(403, "用户已存在"),
    USER_AUTH_ERROR(403, "用户认证失败"),
    USER_CREATE_ERROR(404,"用户创建失败");


    final int code;
    final String msg;

    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
